const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const tsconfigPathsWebpackPlugin = require('tsconfig-paths-webpack-plugin')

//配置vw
const path = require('path')

module.exports = {
    plugins: [
        new HtmlWebpackPlugin({
            templateContent: '<div id="root"></div>'
        }),
        new MiniCssExtractPlugin({
            filename: "style.css"
        }),
        new tsconfigPathsWebpackPlugin({
            configFile: path.resolve(__dirname, '../tsconfig.json')
        })
    ]
}